package cn.iocoder.yudao.module.bill.controller.admin.account.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 账户信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AccountRespVO {

    @Schema(description = "唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24616")
    @ExcelProperty("唯一ID")
    private Long id;

    @Schema(description = "账户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13351")
    @ExcelProperty("账户ID")
    private Integer accountId;

    @Schema(description = "账号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("账号名称")
    private String accountName;

    @Schema(description = "账户主人")
    @ExcelProperty("账户主人")
    private String accountOwner;

    @Schema(description = "账号备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @ExcelProperty("账号备注")
    private String accountRemark;

    @Schema(description = "账号启用日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("账号启用日期")
    private LocalDateTime accountStartTime;

    @Schema(description = "账号停用日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("账号停用日期")
    private LocalDateTime accountStopTime;

    @Schema(description = "是否计入流水")
    @ExcelProperty(value = "是否计入流水", converter = DictConvert.class)
    @DictFormat("bill_yes_or_no") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer hasWater;

    @Schema(description = "是否启用")
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("bill_yes_or_no") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer hasEnable;

    @Schema(description = "资金归属")
    @ExcelProperty("资金归属")
    private String moneyOwner;

    @Schema(description = "账户类型", example = "1")
    @ExcelProperty(value = "账户类型", converter = DictConvert.class)
    @DictFormat("bill_account_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String accountType;

    @Schema(description = "银行名称", example = "李四")
    @ExcelProperty(value = "银行名称", converter = DictConvert.class)
    @DictFormat("bill_bank_name") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String bankName;

    @Schema(description = "银行卡号")
    @ExcelProperty("银行卡号")
    private String bankCard;

    @Schema(description = "排序号")
    @ExcelProperty("排序号")
    private Integer orderNum;

    @Schema(description = "逻辑父账户", requiredMode = Schema.RequiredMode.REQUIRED, example = "21530")
    @ExcelProperty("逻辑父账户")
    private String logicParentAccount;

    @Schema(description = "标记余额")
    @ExcelProperty("标记余额")
    private BigDecimal remarkBalance;

    @Schema(description = "标记余额时间")
    @ExcelProperty("标记余额时间")
    private LocalDateTime remarkBalanceTime;

    @Schema(description = "额外参数")
    @ExcelProperty("额外参数")
    private String extParam;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}